package com.smartcampusbackend.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.LocalDateTime;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

@Data
@TableName("leave_application")
public class LeaveApplication {
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId
    private Long id;
    private Long studentId;
    private String leaveType;
    private String leaveReason;
    private LocalDateTime startDate;
    private LocalDateTime endDate;
    private String affectedCourses; // 存储课程ID，以逗号分隔
    private String status; // PENDING, APPROVED, REJECTED
    private String rejectReason;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
} 